xen/arm: Rework the way to compute dom0 DTB base address
authorJulien Grall <julien.grall@linaro.org>
Thu, 27 Jun 2013 17:13:30 +0000 (18:13 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 28 Jun 2013 11:42:13 +0000 (12:42 +0100)
commitbcb49301c21ed69b4e8c164fa215efe9db30621a
tree70d365dbd4372d0252c8de433310fe3aa0422cd3
parent751554bfc9dc0363fabf882f6e8855022590ec4d
xen/arm: Rework the way to compute dom0 DTB base address

If the DTB is loading right after the kernel, on some setup, Linux will
overwrite the DTB during the decompression step.

To be sure the DTB won't be overwritten by the decompression stage, load
the DTB near the end of the first memory bank and below 4Gib (if memory range is
greater).

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain_build.c
xen/arch/arm/kernel.c
xen/arch/arm/kernel.h